
const { STRING, INTEGER } = require('../types')

module.exports = (sequelize) => {
  const receive = sequelize.define(
    'receive',
    {// 在这里定义模型属性
      package_id: {
        type: INTEGER,
        primaryKey:true,
        autoIncrement:true,
        allowNull:false
      },
      receiver_id: { // 转运人员id
        type: INTEGER,
      },
      receive_time: { // 转运车辆牌照
        type: STRING,
      },
      receive_weight: { // 车辆轨迹坐标
        type: STRING,
      },
    },
    {
    tableName: "sys_waste_receive",//直接提供表名
    timestamps: false
   }
  );
  return receive
}
